package com.mk.cloud.common.domain;
import org.beetl.sql.core.annotatoin.AssignID;
import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.mapper.BaseMapper;

import javax.persistence.Transient;
import java.io.Serializable;
import java.math.*;
import java.util.Date;
import java.sql.Timestamp;
import java.util.List;

/*
* 
* gen by beetlsql 2018-04-04
*/
public class PTeamArea   implements Serializable{
	@AssignID
	private String taid ;
	private String taarea ;
	private String coid;

	@Transient
	private String areanames;

	public String getCoid() {
		return coid;
	}

	public void setCoid(String coid) {
		this.coid = coid;
	}
	
	public PTeamArea() {
	}

	public String getAreanames() {
		return areanames;
	}

	public void setAreanames(String areanames) {
		this.areanames = areanames;
	}

	public String getTaid(){
		return  taid;
	}
	public void setTaid(String taid ){
		this.taid = taid;
	}
	
	public String getTaarea(){
		return  taarea;
	}
	public void setTaarea(String taarea ){
		this.taarea = taarea;
	}

	public interface Mapper extends BaseMapper<PTeamArea> {

		/**
		 * 所属区域
		 * @param taid
		 * @return
		 */
		List<GlArea> getCheckedAreas(@Param("taid")String taid);


		/**
		 * 查询该企业下所有已经选择的区域
		 * @param coid
		 * @return
		 */
		List<PTeamAreaArea> getCheckedAreasByCoid(@Param("coid") String coid);

		/**
		 * 删除相应的对应关系
		 * @param taid
		 * @return
		 */
		Integer deleteAreaAreaByTaid(@Param("taid")String taid);
	}
	

}
